import Index from "../views/Index"
import Det from "../views/Det"
import Add from "../views/Add"
import Detial from "../views/Detial"
import Home from "../views/Home"


let routerConfig = [
    {
        type:"route",
        path:"/index",
        component:Index,
        children:[
            {
                type:"route",
                path:"/index/home",
                component:Home
            },{
                type:"route",
                path:"/index/det",
                component:Det
            },{
                type:"route",
                path:"/index/add",
                component:Add,
            },{
                type:"route",
                path:"/index/detial",
                component:Detial
            },{
                type:"route",
                path:"/index/det",
                component:Det
            }
            ,{
                type:"redirect",
                from:"/index",
                to:"/index/home"
            },
        ]
    },{
        type:"redirect",
        from:"/",
        to:"/index"
    }
]

export default routerConfig